package org.tbjd.client.utils;

/**
 * <p>
 * This utility class manages the zoom in use for the {@link org.tbjd.client.guis.gantt.GanttTimeLineGui GanttTimeLineGui}
 * </p>
 * <p>
 * The user can switch between several zoom modes, each one of them having an effect on the amount of time represented in a column of the
 * GanttTimeLineGui
 * </p>
 * <p>
 * i.e. zoom is set to "day" then getZoom() returns 1 because each column is one hour long
 * </p>
 * <p>
 * i.e. zoom is set to "week" then getZoom() returns 24 because each column is 24 hours long
 * </p>
 * <p>
 * i.e. zoom is set to "month" then getZoom() returns 168 because each column is 7 days long
 * </p>
 * 
 * @author Michael Martin
 * @author Antonio Carrozzini
 * @version 1.0
 * 
 */

public class ZoomUtils {

	private static final int DAY = 1;
	private static final int WEEK = 24;
	private static final int MONTH = 168;

	/**
	 * <p>
	 * Number of hours for the selected zoom
	 * </p>
	 */
	private int zoom;

	public int getZoom() {
		return zoom;
	}

	public void setDayZoom() {
		this.zoom = DAY;
	}

	public void setWeekZoom() {
		this.zoom = WEEK;
	}

	public void setMonthZoom() {
		this.zoom = MONTH;
	}

}
